Optimal. Leaf size=49 \[ -i e^{2 i a} x^2-\frac {i x^4}{4}-i e^{4 i a} \log \left (e^{2 i a}-x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {4592, 456, 457,
78} \begin {gather*} -i e^{2 i a} x^2-i e^{4 i a} \log \left (-x^2+e^{2 i a}\right )-\frac {i x^4}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 456
Rule 457
Rule 4592
Rubi steps
\begin {align*} \int x^3 \cot (a+i \log (x)) \, dx &=\int x^3 \cot (a+i \log (x)) \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(137\) vs. \(2(49)=98\).
time = 0.03, size = 137, normalized size = 2.80 \begin {gather*} -\frac {i x^4}{4}-i x^2 \cos (2 a)-\text {ArcTan}\left (\frac {\left (-1+x^2\right ) \cos (a)}{-\sin (a)-x^2 \sin (a)}\right ) \cos (4 a)-\frac {1}{2} i \cos (4 a) \log \left (1+x^4-2 x^2 \cos (2 a)\right )+x^2 \sin (2 a)-i \text {ArcTan}\left (\frac {\left (-1+x^2\right ) \cos (a)}{-\sin (a)-x^2 \sin (a)}\right ) \sin (4 a)+\frac {1}{2} \log \left (1+x^4-2 x^2 \cos (2 a)\right ) \sin (4 a) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 39, normalized size = 0.80
method | result | size |
risch | \(-i {\mathrm e}^{2 i a} x^{2}-\frac {i x^{4}}{4}-i {\mathrm e}^{4 i a} \ln \left ({\mathrm e}^{2 i a}-x^{2}\right )\) | \(39\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 131 vs. \(2 (32) = 64\).
time = 0.28, size = 131, normalized size = 2.67 \begin {gather*} -\frac {1}{4} i \, x^{4} - x^{2} {\left (i \, \cos \left (2 \, a\right ) - \sin \left (2 \, a\right )\right )} + {\left (\cos \left (4 \, a\right ) + i \, \sin \left (4 \, a\right )\right )} \arctan \left (\sin \left (a\right ), x + \cos \left (a\right )\right ) - {\left (\cos \left (4 \, a\right ) + i \, \sin \left (4 \, a\right )\right )} \arctan \left (\sin \left (a\right ), x - \cos \left (a\right )\right ) - \frac {1}{2} \, {\left (i \, \cos \left (4 \, a\right ) - \sin \left (4 \, a\right )\right )} \log \left (x^{2} + 2 \, x \cos \left (a\right ) + \cos \left (a\right )^{2} + \sin \left (a\right )^{2}\right ) - \frac {1}{2} \, {\left (i \, \cos \left (4 \, a\right ) - \sin \left (4 \, a\right )\right )} \log \left (x^{2} - 2 \, x \cos \left (a\right ) + \cos \left (a\right )^{2} + \sin \left (a\right )^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.78, size = 32, normalized size = 0.65 \begin {gather*} -\frac {1}{4} i \, x^{4} - i \, x^{2} e^{\left (2 i \, a\right )} - i \, e^{\left (4 i \, a\right )} \log \left (x^{2} - e^{\left (2 i \, a\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.11, size = 39, normalized size = 0.80 \begin {gather*} - \frac {i x^{4}}{4} - i x^{2} e^{2 i a} - i e^{4 i a} \log {\left (x^{2} - e^{2 i a} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 50, normalized size = 1.02 \begin {gather*} -\frac {1}{4} i \, x^{4} - i \, x^{2} e^{\left (2 i \, a\right )} + \frac {1}{2} \, \pi e^{\left (4 i \, a\right )} - i \, e^{\left (4 i \, a\right )} \log \left (x + e^{\left (i \, a\right )}\right ) - i \, e^{\left (4 i \, a\right )} \log \left (-x + e^{\left (i \, a\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.22, size = 38, normalized size = 0.78 \begin {gather*} -x^2\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,1{}\mathrm {i}-\ln \left (x^2-{\mathrm {e}}^{a\,2{}\mathrm {i}}\right )\,{\mathrm {e}}^{a\,4{}\mathrm {i}}\,1{}\mathrm {i}-\frac {x^4\,1{}\mathrm {i}}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________